<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html:xhtml />
<logic:notPresent name="LOGGED_USER">
    Aqui se redirecciona a la pagina de logueo
    <%--<li><html:link page="/ugel">
	<bean:message key="ugel.login" />
    </html:link></li>--%>
</logic:notPresent>
<logic:present name="LOGGED_USER">
    <%-- Operador ---%>
    <logic:equal value="1" name="LOGGED_USER" property="tipo">
        <img src="<html:rewrite page="/resources/images/tit_menu_r1.gif"/>" width="176" height="33" />  

 <a href="#" onMouseout="MM_nbGroup('out');" onMouseover="MM_nbGroup('over','n00000001_r3_c2','../resources/images/00000001_r3_c2_f2.gif','../resources/images/00000001_r3_c2_f4.gif',1);" onClick="abrirSubmenu(1);">
     <img name="n00000001_r3_c2" src="<html:rewrite page="/resources/images/00000001_r2_c2_f3.gif"/>" width="176" height="26" border="0" alt="">
 </a>
 <div id="submenu1" style="display:none">
     <ul>
     <html:link action="/operador/listadoNucleo">Mantener Nucleo</html:link>  <br>
     <html:link action="/operador/listadoParto">Mantener Parto</html:link>  <br>
     <a href="#">Sub menu C</a><br>
     <a href="#">Sub menu D</a></ul>
 </div>        
 <a href="#"  onMouseout="MM_nbGroup('out');" onMouseover="MM_nbGroup('over','n00000001_r3_c2','../resources/images/00000001_r3_c2_f2.gif','../resources/images/00000001_r3_c2_f4.gif',1);" onClick="abrirSubmenu(2);">
            <img name="n00000001_r2_c2" src="<html:rewrite page="/resources/images/00000001_r3_c2_f3.gif"/>" width="176" height="26" border="0" alt="">
 </a>
 <div id="submenu2" style="display:none">
     <ul>
     <html:link action="/operador/listadoTarea">Mantener Tareas</html:link><br>
     <html:link action="/operador/listadoEjecutarTarea">Ejecutar Tareas</html:link><br>
     <a href="#">Sub menu 3-a</a><br>
     <a href="#">Sub menu 4-a</a></ul>
  </div>        
 <a href="#"  onMouseout="MM_nbGroup('out');" onMouseover="MM_nbGroup('over','n00000001_r3_c2','../resources/images/00000001_r3_c2_f2.gif','../resources/images/00000001_r3_c2_f2.gif',1);" onClick="abrirSubmenu(3);">
            <img name="n00000001_r5_c2" src="<html:rewrite page="/resources/images/00000001_r5_c2.gif"/>" width="176" height="26" border="0" alt="">
 </a>
 <div id="submenu3" style="display:none">
     <ul>
     <a href="#">Sub menu 3-a</a><br>
     <a href="#">Sub menu 4-a</a></ul>
  </div>          
 <a href="#"  onMouseout="MM_nbGroup('out');" onMouseover="MM_nbGroup('over','n00000001_r3_c2','../resources/images/00000001_r3_c2_f2.gif','../resources/images/00000001_r3_c2_f2.gif',1);" onClick="abrirSubmenu(4);">
            <img name="n00000001_r7_c2" src="<html:rewrite page="/resources/images/00000001_r7_c2.gif"/>" width="176" height="26" border="0" alt="">
 </a>
 <div id="submenu4" style="display:none">
     <ul><html:link action="/operador/listadoRacion">Mantener Racion</html:link><br>
         <html:link action="/operador/listadoNutriente">Mantener Ingrediente</html:link><br>     
         <html:link action="/operador/listadoNutriente">Mantener Nutriente</html:link></ul>
  </div>  
 <a href="#"  onMouseout="MM_nbGroup('out');" onMouseover="MM_nbGroup('over','n00000001_r3_c2','../resources/images/00000001_r3_c2_f2.gif','../resources/images/00000001_r3_c2_f2.gif',1);" onClick="abrirSubmenu(5);">
            <img name="n00000001_r9_c2" src="<html:rewrite page="/resources/images/00000001_r9_c2.gif"/>" width="176" height="26" border="0" alt="">
 </a>  
 <div id="submenu5" style="display:none">
     <ul><html:link action="/operador/reporteDardebaja">Dar de baja</html:link><br>
         <html:link action="/operador/reportePorDestetar">Pendientes por destetar</html:link><br>     
         <html:link action="/operador/listadoNutriente">Mantener Nutriente</html:link></ul>
  </div>  
<br>
 <img name="spacer" src="<html:rewrite page="/resources/images/spacer.gif"/>" width="70" height="35" border="0" alt="">
 
 <%String rutaAlerta = request.getContextPath()+"/operador/listadoAlerta.do"; %>
 <a target="buscar" onclick="return abrirVentana(this);" href="<%=rutaAlerta%>">
     <img name="alarma" src="<html:rewrite page="/resources/images/alarma.gif"/>" width="25" height="35" border="0" alt="">
 </a>
 
 </logic:equal>
    <%-- Administrador --%>
 <logic:equal value="2" name="LOGGED_USER" property="tipo">
        <a href="#">
            <img name="n00000001_r10_c2" src="<html:rewrite page="/resources/images/00000001_r10_c2.gif"/>" width="176" height="27" border="0" alt="">
        </a>
    </logic:equal>
</logic:present>
